﻿<Window x:Class="CECB.Team_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     Title="CECB - Team" 
                x:Name="Window"
        Width="500" Height="400"
        WindowStartupLocation="CenterScreen" WindowState="Normal" ResizeMode="NoResize" Icon="/Images/cecb1.ico" xmlns:my="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon">
    <Window.Background>
        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FF144BC7" Offset="0" />
            <GradientStop Color="#FFB2FCFC" Offset="1" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="36,0,54,0" Width="388" Height="auto">
            <WrapPanel VerticalAlignment="Top" Height="50">
                <Label Content="Create a Project Team" Height="auto" HorizontalAlignment="Center" Margin="0,10,0,0"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>
                 
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top">
                <TextBox Height="30" HorizontalAlignment="Left" Margin="240,7,0,0" Name="textBox_FirstName" VerticalAlignment="Top" Width="140" FontSize="14" Foreground="#FF4E0000" />
                <Label Content="Team Name" Height="28" Name="label1" HorizontalAlignment="Left" Margin="25,-22,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top">
                <ComboBox Height="30" HorizontalAlignment="Left" Margin="240,7,0,0" Name="combobox_TeamLeader" VerticalAlignment="Top" Width="140" FontSize="14" Foreground="#FF4E0000" DisplayMemberPath="EmpfName" SelectedValuePath="EmpReference"/>
                <Label Content="Team Leader" Height="28" Name="label2" HorizontalAlignment="Left" Margin="25,-28,80,0" VerticalAlignment="Center" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </WrapPanel>           
            <WrapPanel VerticalAlignment="Top">
                <Label Content="Team Members" Height="28" Name="label4" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <ListBox Name="listBox1" Height="150" Width="140" Margin="240,-15,0,0" SelectionMode="Multiple">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding EmpfName}"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </WrapPanel>
             
              
            <WrapPanel VerticalAlignment="Top" Height="5" >
                <WrapPanel.Background>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFA3EBF7" Offset="0" />
                        <GradientStop Color="#FF225BCC" Offset="1" />
                    </LinearGradientBrush>
                </WrapPanel.Background>
            </WrapPanel>
        </StackPanel>
        <StackPanel Name="stackPanel14" Orientation="Horizontal" Margin="0,300,60,10" HorizontalAlignment="Right" ClipToBounds="False">

            <Button Background="{x:Null}" BorderBrush="{x:Null}" Click="SaveButton_Click" Height="44" Margin="2,0" Name="SaveButton" Width="98">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" Height="32" Margin="2" Source="images\save.png" Width="32" />
                    <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                        <TextBlock Margin="0" Padding="0" Text="Save" TextWrapping="NoWrap" />
                    </StackPanel>
                </Grid>
            </Button>
            <Button Background="{x:Null}" BorderBrush="{x:Null}" Click="CloseButton_Click" Height="44" Margin="2,0" Name="CloseButton" Width="98">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" Height="32" Margin="2" Source="images\close.png" Width="32" />
                    <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                        <TextBlock Margin="0" Padding="0" Text="Close" TextWrapping="NoWrap" />
                    </StackPanel>
                </Grid>
            </Button>
        </StackPanel>
    </Grid>
</Window>
